package com.manager.commons.base;

import java.io.Serializable;
import java.util.List;

/**
 * DataGrid实体类
 * @author H
 */
public class DataGrid implements Serializable {

	private static final long serialVersionUID = 2384154742053385817L;
	private int code=0;
	/**
	 * 数据数组
	 */
	private List<?> data;
	/**
	 * 结果
	 */
	private Integer count;
	/**
	 * 错误信息
	 */
	private String msg;

	public DataGrid() {}

	public DataGrid(Integer results, List<?> rows) {
		this.count = results;
		this.data = rows;
	}

    public List<?> getData() {
        return data;
    }

    public void setData(List<?> data) {
        this.data = data;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}